package cn.itheima.service;

import cn.itheima.domain.User;
import cn.itheima.domain.UserQueryVo;

import java.sql.SQLException;
import java.util.List;

/**
 * @author: cuisensen
 * data: 2018/6/26.
 * time: 0:48.
 */
public interface UserService {
    User login(String Uid);

    boolean register(User user);

    boolean isExist(String uname);

    List<User> findUserByTerm(UserQueryVo query);

    void insertUser(User user) throws SQLException;

    User findUserById(String uid);

    void updateUser(User user);
}
